home *** CD-ROM | disk | FTP | other *** search
/ La Bible Des... Jeux / La Bible des... Jeux.iso / Utilitaires / CaRMSAPA / Sources / CaRMSAPA.h < prev    next >
Encoding:
Text File  |  1995-11-03  |  1.7 KB  |  54 lines  |  [TEXT/CWIE]

  1. //
  2. //    SDA Prototypes.h
  3. //
  4. //    Prototypes for Screen Depth Alias.c
  5. //    To be merged later. Here only for convenience.
  6. //
  7.  
  8. OSErr IncreaseApplicationStack(Size incrementSize);
  9.  
  10. pascal OSErr RunAEHandler (AppleEvent * theEvent, AppleEvent * theReply, long refcon);
  11. pascal OSErr QuitAEHandler (AppleEvent * theEvent, AppleEvent * theReply, long refcon);
  12. pascal OSErr OpenAEHandler (AppleEvent * theEvent, AppleEvent * theReply, long refcon);
  13. pascal OSErr ChildDiedAEHandler (AppleEvent * theEvent, AppleEvent * theReply, long refcon);
  14. OSErr GotRequiredParam(AppleEvent *theEvent);
  15.  
  16. typedef struct {
  17.         Boolean isColor;
  18.         unsigned short theDepth;
  19.         } ScreenStateRecord, **ScreenStateHdl;
  20. Boolean EqualScreenState(ScreenStateRecord ss1, ScreenStateRecord ss2);
  21. ScreenStateRecord GetScreenState(void);
  22. Boolean ScreenStateAvail(ScreenStateRecord theState);
  23. void SetScreenState(ScreenStateRecord theState);
  24. void RememberScreenState(ScreenStateRecord theState);
  25. ScreenStateRecord RecallScreenState(void);
  26.  
  27. void StringTemplate(Str255 tmp, Str255 sub1, Str255 sub2);
  28. void ScreenStateToString(ScreenStateRecord sd, Str63 str);
  29. void AliasToFileName(AliasHandle theAlias, Str63 name);
  30. void MakeFinderHelpString(Str255 s);
  31.  
  32. OSType GetFileType(FSSpec *spec);
  33. OSErr RememberTargetApp(FSSpec* f);
  34. OSErr RecallTargetApp(FSSpec *f);
  35.  
  36. OSErr RememberEverything(FSSpec *spec);
  37. Boolean IsAppRunning(FSSpec *theApp);
  38. Boolean IsTargetRunning(FSSpec *theFSS);
  39.  
  40. typedef enum {
  41.         errUnexpected = 1,
  42.         errCantSetScreenState,
  43.         errCantFindApplication,
  44.         errMissingSystemFeature,
  45.         errLaunchedMoreThanOnce,
  46.         errTooManyItemsToOpen,
  47.         errDroppedFileOfWrongType,
  48.         errTargetAlreadyRunning
  49.       } ErrorCode;
  50. void Error(ErrorCode code);
  51. void Message(Str255 str);
  52. Boolean ICanRun(void);
  53. Boolean IsBackgroundOnly(void);
  54.